package com.jiegui.business.service.impl;

import java.util.List;
import com.jiegui.common.utils.DateUtils;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.jiegui.business.mapper.ExhibitorInfoMapper;
import com.jiegui.business.domain.ExhibitorInfo;
import com.jiegui.business.service.ExhibitorInfoService;

/**
 * 展商信息Service业务层处理
 * 
 * @author wuqicheng
 * @date 2024-11-20
 */
@Service
public class ExhibitorInfoServiceImpl extends ServiceImpl<ExhibitorInfoMapper, ExhibitorInfo> implements ExhibitorInfoService
{
    @Resource
    private ExhibitorInfoMapper exhibitorInfoMapper;

    /**
     * 查询展商信息
     * 
     * @param id 展商信息主键
     * @return 展商信息
     */
    @Override
     public ExhibitorInfo selectExhibitorInfoById(String id)
    {
        return exhibitorInfoMapper.selectById(id);
    }

    /**
     * 查询展商信息列表
     * 
     * @param exhibitorInfo 展商信息
     * @return 展商信息
     */
    @Override
    public List<ExhibitorInfo> selectExhibitorInfoList(ExhibitorInfo exhibitorInfo)
    {
        return exhibitorInfoMapper.selectExhibitorInfoList(exhibitorInfo);
    }

    /**
     * 新增展商信息
     * 
     * @param exhibitorInfo 展商信息
     * @return 结果
     */
    @Override
    public  int insertExhibitorInfo(ExhibitorInfo exhibitorInfo)
    {
        return exhibitorInfoMapper.insert(exhibitorInfo);
    }

    /**
     * 修改展商信息
     * 
     * @param exhibitorInfo 展商信息
     * @return 结果
     */
    @Override
    public  int updateExhibitorInfo(ExhibitorInfo exhibitorInfo)
    {

        return exhibitorInfoMapper.updateById(exhibitorInfo);
    }




}
